package com.wsd.smartcarwasher.dao;

import com.wsd.smartcarwasher.domain.CardOrder;
import org.springframework.dao.DataAccessException;

import java.util.List;

public interface CardOrderDao {

    int addCardOrder(CardOrder order) throws DataAccessException;

    int updateCardOrder(CardOrder order) throws DataAccessException;

    int deleteCardOrder(String orderSn) throws DataAccessException;

    CardOrder queryOrderInfoByOrderSn(String orderSn) throws DataAccessException;

    List<String> getAllOrderSn() throws DataAccessException;

    List<CardOrder> queryUserOrder(String userId) throws DataAccessException;

    List<CardOrder> queryUserOrderAll(CardOrder cardOrder);

    CardOrder queryOrderInfoByUcId(String ucId);
}
